package tuiLayer;
import modelLayer.*;
import controllerLayer.*;

import java.util.*;

public class DvdUI {
	private DvdCtr dvdCtr ;
	private Scanner scanner = new Scanner(System.in);
	DvdCtr dvdCtr=new DvdCtr();
	
	
		
		
	
	private int prompt(String prompt){
		System.out.print(" " + prompt + " ");
		int input = scanner.nextInt();
		return input;
	}
	
	private double promptD(String prompt){
		System.out.print(" " + prompt + " ");
		double input = scanner.nextInt();
		return input;
	}
	
	private String prompt2(String prompt) {
        System.out.print( prompt + " ");
        String input = scanner.next();
        return input.toLowerCase();
    }
	
	
	
	public Dvd createDVD(){
		
	    String title, date;
		title = prompt2("Enter the title of the new DVD:");
		int barcode = prompt("Enter the barcode of the new DVD:");
		int serialNumber = prompt("Enter the serial number of the new copy:");
		date = prompt2("Enter the date:");
		System.out.println(title+" "+barcode);
		return dvdCtr.createDvd(title,barcode,serialNumber,date);
		
	}
	
	
	
	
	

	
}
